import { getAllMap } from '../../api/assist-decision/common'

const state = {
  selectMaps: {}
}

const mutations = {
  SET_SELECT_MAPS: (state, maps) => {
    state.selectMaps = maps
  }
}

const actions = {
  getSelectMaps({ commit }) {
    getAllMap({}).then(res => {
      commit('SET_SELECT_MAPS', res.data)
    })
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
